/*
 * wbh实习专用，其他人无权访问
 *Practice IntelligenceMajor YCHS 2022
 *努力不一定有回报
 */
package com.wbh.lawyermanager.dongao.service;

import com.wbh.lawyermanager.dongao.entity.Lawyer;

import java.util.List;

/**
 * @author wangbohong
 * @version 1.0
 * 律师档案业务接口
 */
public interface LawyerService {
    /**
     * 修改律师
     * @param lawyer 律师对象
     * @return 修改成功返回1，否则返回0
     */
    public int modifyLawyer(Lawyer lawyer);
    /**
     * 按编号查询律师
     * @param lawyerid 律师编号
     * @return 查询得到的律师对象
     */
    public Lawyer findLawyerById(int lawyerid);
    /**
     * 添加律师
     * @param lawyer 律师对象
     * @return 成功返回1，否则0
     */
    public int addLawyer(Lawyer lawyer);

    /**
     * 查询所有律师
     * @return 返回律师集合
     */
    public List<Lawyer> findLawyer();

    /**
     * 删除律师信息
     * @param lawyerid 律师编号
     * @return 成功返回1，否则0
     */
    public int cancelLawyer(int lawyerid);
}
